home *** CD-ROM | disk | FTP | other *** search
/ TOS Silver 2000 / TOS Silver 2000.iso / Falcon / CENTEK / CENTSCRN / DEV / ASM / BIOS.EQU next >
Encoding:
Text File  |  1998-10-12  |  2.0 KB  |  95 lines

  1. ***************************************************************************
  2.         
  3.         ********
  4.         * Standard BIOS device number
  5.  
  6. prt_dev        equ    0
  7. aux_dev        equ    1
  8. con_dev        equ    2
  9. midi_dev        equ    3
  10. ikbd_dev        equ    4
  11. raw_dev        equ    5
  12. new_dev        equ    6
  13.  
  14.         ********
  15.         * Error code for BIOS
  16.         * 0 no error !
  17. ERROR        equ    -1    ;generic error
  18. EDRVNR        equ    -2    ;drive not ready
  19. EUNCMD        equ    -3    ;unknow command
  20. E_CRC        equ    -4    ;CRC error
  21. EBADRQ        equ    -5    ;bad request
  22. E_SEEK        equ    -6    ;seek error
  23. EMEDIA        equ    -7    ;unknow media
  24. ESECNF        equ    -8    ;sector not found
  25. EPAPER        equ    -9    ;out of paper
  26. EWRITF        equ    -10    ;write fault
  27. EREADF        equ    -11    ;read fault
  28. EGENRL        equ    -12    ;general error
  29. EWRPRO        equ    -13    ;device write protected
  30. E_CHNG        equ    -14    ;media change detected
  31. EUNDEV        equ    -15    ;unknow device
  32. EBADSF        equ    -16    ;bad sectors on format
  33. EOTHER        equ    -17    ;insert other disk request
  34.  
  35.         ********
  36.  
  37.         ; Original BIOS functions
  38.  
  39. Getmpb        =    $0006
  40. Bconstat        =    $0104
  41. Bconin        =    $0204
  42. Bconout        =    $0306
  43. Rwabs        =    $040e
  44. LRwabs        =    $0412
  45. Setexec        =    $0508
  46. Tickcal        =    $0602
  47. Getbpb        =    $0704
  48. Bcostat        =    $0804
  49. Mediach        =    $0904
  50. Drvmap        =    $0a02
  51. Kbshift        =    $0b04
  52.  
  53.         ; fonctions du Device Manager
  54.         ; 1) fonctions scsi
  55.  
  56. ScReset        =    $1002    ; reset du bus scsi
  57. ScGet        =    $1102    ; sans effet (compatibilité)
  58. ScSelect        =    $1204    ; sélection de l'id
  59. ScCmd        =    $1308    ; envoi de commande
  60. ScComplete    =    $140e    ; conclusion transaction
  61.  
  62. ScRead        =    $1506    ; lecture
  63. ScWrite        =    $1606    ; écriture
  64.  
  65. ScReadDma        =    $1706    ; lecture dma
  66. ScWriteDma    =    $1806    ; écriture dma
  67.  
  68. ScReadBack    =    $1906    ; lecture dma background
  69. ScWriteBack    =    $1a06    ; écriture dma background
  70.  
  71. ScStat        =    $1b02    ; lecture status ncr
  72. ScSelAtn        =    $1c04    ; sélection avec \ATN
  73.  
  74. ScMsgIn        =    $1d06    ; réception message
  75. scMsgOut        =    $1e06    ; envoi message
  76.  
  77.         ; 1) fonctions ide
  78.  
  79. AtaReset        =    $2002    ; reset ide
  80.         
  81.         ********
  82.         * MSB: code function
  83.         * LSB: pile correction
  84.         
  85. BIOS        MACRO
  86.         move    #\1>>8,-(sp)
  87.         trap    #13
  88.         lea    \1&$ff(sp),sp
  89.         
  90.         ENDM
  91.         
  92.         ********
  93.  
  94. ***************************************************************************
  95.